package com.wh.common.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Data
@ConfigurationProperties(prefix = "my.async.pool")
@Configuration
public class MyAsyncPoolConfig {
    private int corePoolSize = 10;
    private int maxPoolSize = 20;
    private int keepAliveSeconds = 120;
    private int queueCapacity = 1000;
    private int awaitTerminationSeconds = 60;
    private String threadNamePrefix = "my-async-default-";
}
